from locals import *
import objects

class Block(objects.Object):
	graphic = "block.png"
	_passable = False
	_push = False
	
	_immunities = ("fire")
	_damage = ("blunt",)

	def push(self, pusher, movement, speed):
		return self.move(movement, speed)
		
	def kill(self, killer, damage_types):
		for damage in damage_types:
			if damage not in self._immunities:	
				if damage_types[0] == "water":
					killer.kill(self, self._damage)
						
				self.remove()
				break
